package com.demo14;

import java.util.HashSet;

public class SetTest {

    private HashSet hashSet = new HashSet<>();

    //添加一个集合数据
    public <E> void add(E e) {
        hashSet.add(e);
    }

    public HashSet getHashSet() {
        return hashSet;
    }
}
